Skip to content

fix(ci): fix release binary upload and support manual trigger - #1651

Merged
quirogas merged 1 commit into
googleapis:mainfrom
quirogas:fix-release-workflow
Oct 29, 2026
Merged

quirogas merged 1 commit into
googleapis:mainfrom
quirogas:fix-release-workflow

Conversation

@quirogas

Copy link
Copy Markdown
Contributor

Fixes #1646

Summary

  • Fix release asset clobbering: Build tarballs directly with their unique target filename (api-linter-${RAW_VERSION}-${OS}-${ARCH}.tar.gz) and upload without #<label>. Previously, gh release upload "$TAG_NAME" "./api-linter.tar.gz#<label>" --clobber used api-linter.tar.gz as the asset name across all matrix jobs and only set the UI display label, causing parallel jobs to overwrite each other and race on the same asset name.
  • Resilient & idempotent matrix runs: Set strategy.fail-fast: false so a transient failure in one OS/arch leg does not cancel the remaining matrix jobs, while keeping failed jobs marked as failed so "Re-run failed jobs" works in the GitHub UI.
  • Support manual trigger (workflow_dispatch): Add workflow_dispatch with a required tag_name input, verify that the release exists (gh release view "$TAG_NAME"), and checkout ref: ${{ inputs.tag_name || github.event.release.tag_name }} so releases can be backfilled or re-run from main after workflow fixes.
  • Avoid template-injection warnings: Pass OS and ARCH via job-level env: variables rather than interpolating ${{ matrix... }} inside run: scripts.

@quirogas
quirogas requested a review from a team as a code owner October 29, 2026 18:27
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@noahdietz noahdietz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@quirogas
quirogas enabled auto-merge (squash) October 29, 2026 18:31
@quirogas
quirogas merged commit e395e61 into googleapis:main Oct 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The v2.4.0 release is missing binaries

2 participants